package util;

import java.net.Socket;

import javax.crypto.SecretKey;


public class Connection {

	private Socket connectionSocket;
	private String username;
	private long sessionID;
	private SecretKey key;
	
	public Connection(Socket connectionSocket, String username, long sessionID){
		this.connectionSocket = connectionSocket;
		this.username = username;
		this.sessionID = sessionID;
	}
	
	public void setSocket(Socket newSocket){
		this.connectionSocket = newSocket;
	}
	
	public Socket getSocket(){
		return this.connectionSocket;
	}
	
	public void setUsername(String username){
		this.username = username;
	}
	
	public String getUsername(){
		return this.username;
	}
	
	public void setSessionID(long sessionID){
		this.sessionID = sessionID;
	}
	
	public long getSessionID(){
		return this.sessionID;
	}

	public void setKey(SecretKey key) {
		this.key = key;
	}

	public SecretKey getKey() {
		return key;
	}
}
